SET.OPEN_REPAIR Function

Syntax

<Set> as P = SET.Open_Repair(C setname[,N file_open_mode[,C password]])

Arguments

setname

The name of a set. The extension ".set" is assumed.

file_open_mode

Optional. Determines the access privileges that apply to the open set file. You can use one of the following system variables:

Variable

Function

FILE_RO_EXCLUSIVE

Read Only (Exclusive)

FILE_RW_EXCLUSIVE

Read or Write (Exclusive)

FILE_RO_SHARED

Read Only (Shared)

FILE_RW_SHARED

Read or Write (Shared)

password

Optional. Needed if the set has been encrypted, and the default encryption key has not been set (using the DEFAULT_ENCRYPTION_KEY_SET() function), of if the set was encrypted using a different encryption key than the default encryption key.

Description

Open an existing set - repair problems interactively if encoutered.

Discussion

The SET.OPEN_REPAIR() method opens an existing set, repairing problems interactively as they are encountered.

Example

dim ptr as P
ptr = set.open_repair("invoice", FILE_RW_EXCLUSIVE)

See Also